package com.tanguy.driver.bean.car;

import android.support.annotation.NonNull;

import com.tanguy.driver.bean.BopomofoSortable;

/**
 * Created by dab on 2017/11/13 0013 16:15
 * 车辆品牌
 */

public class CarBrandBean extends BopomofoSortable {

    /**
     * id : 1
     * addtime : 1508830053000
     * name : 大众
     * icon : 12312
     * remark : 啊啊
     * state : 1
     */

    private int id;
    private long addtime;
    private String name;
    private String icon;
    private String remark;
    private int state;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getAddtime() {
        return addtime;
    }

    public void setAddtime(long addtime) {
        this.addtime = addtime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "CarBrandBean{" +
                "id=" + id +
                ", addtime=" + addtime +
                ", name='" + name + '\'' +
                ", icon='" + icon + '\'' +
                ", remark='" + remark + '\'' +
                ", state=" + state +
                '}';
    }

    @NonNull
    @Override
    public String getSortableString() {
        return name == null ? "" : name;
    }
}
